# 转义字符
print("红红说：\"下雨了！\"")
print('python\n你好')
print('hello\r world')
print('hi\tpython')
print(r"python,你真简单")

# 布尔值
print(3 > 2)
a = 123
b = 123
d = b
print(a is b)
print(b is d)
print(5 == 3)
print(5 > 4 or 1 != 2)
print(True and False)  # False:数值0 None 空列表、字符串、元组，集合，字典
print(not 1 > 2)

# 变量
a = 1
print(a, type(a), id(a))
a = "小黄鸭"
print(a, type(a), id(a))
s = 1.0
print(s, type(s), id(s))
h = 1
print(s == h)
print(id(h))

# 常量
PI = 3.1415926359  # 常量大写
print(10 % 3)
print(10 / 3)
print(10 // 3)
print(-9 // 4)  # 一正一负相除向下取整
print(9 % -4)  # 余数=被除数-余数*商
